<template>
  <div id="cv-steps">
    <div class="title">{{ props.label }}</div>
    <a-steps progress-dot :class="[props.label=='加分项'?'step':'']" :current="props.active" direction="vertical" :items="props.list"></a-steps>
  </div>
</template>

<script setup lang='ts'>
const props = defineProps(["label", 'list', 'active'])
</script>

<style lang="less" scoped>
:deep(.ant-steps-item-description) {
  white-space: pre-line;
}

#cv-steps {
  margin-bottom: 20px;
  pointer-events: none;
}

.title {

  font-weight: 500;
  font-size: 20px;
  color: #333333;
  line-height: 23px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  margin-bottom: 16px;
}

:deep(:where(.css-dev-only-do-not-override-a3h311).ant-steps.ant-steps-vertical.ant-steps-dot .ant-steps-item:first-child .ant-steps-icon-dot) {
  left: -2px;
}

:deep(:where(.css-dev-only-do-not-override-a3h311).ant-steps.ant-steps-vertical.ant-steps-dot .ant-steps-icon-dot) {
  background: rgba(217, 145, 108, 0.2);
  width: 16px;
  height: 16px;
  position: relative;
  left: -3px;

  &::after {
    content: "";
    background: #D9916C;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

}

:deep(:where(.css-dev-only-do-not-override-a3h311).ant-steps.ant-steps-vertical.ant-steps-dot .ant-steps-item>.ant-steps-item-container>.ant-steps-item-tail) {
  top: 16px;
  border-right: 1px dashed #D9916C;
  background-color: transparent;
  height: 70%;
  margin-top: 3%;

}

:deep(:where(.css-dev-only-do-not-override-a3h311).ant-steps.ant-steps-vertical.ant-steps-dot .ant-steps-item>.ant-steps-item-container>.ant-steps-item-tail) {
  left: 4px;
}

:deep(:where(.css-dev-only-do-not-override-a3h311).ant-steps.ant-steps-vertical >.ant-steps-item>.ant-steps-item-container>.ant-steps-item-tail::after) {
  width: 1px;
  display: none;
}

:deep(.ant-steps-item-title) {
  font-weight: 500;
  font-size: 18px;
  color: #333333;
  line-height: 21px;
}

:deep(:where(.css-dev-only-do-not-override-a3h311).ant-steps .ant-steps-item-process>.ant-steps-item-container>.ant-steps-item-content>.ant-steps-item-description) {

  font-weight: 400;
  font-size: 16px;
  color: #666666;
  line-height: 19px;
}

.step {
  :deep(.ant-steps-item-tail) {
    display: none !important;
  }
}
</style>